﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Staff_list.aspx.cs" Inherits="HumanManage_Staff_list" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>人事管理</title>
        <LINK href="../css/public.css" type="text/css" rel="stylesheet">
         <LINK href="../css/style_oa_30.css" type="text/css" rel="stylesheet">
         
         <script>
             function UploadComplete() {

                 showCover();
                 //控件宽
                 var aw = 500;
                 //控件高
                 var ah = 270;
                 //计算控件水平位置
                 var al = (screen.width - aw) / 2 - 100;
                 //计算控件垂直位置
                 var at = (screen.height - ah) / 5;
                 //内容管理
                 var title = '人事管理';
                 var icon = 'smile';
                 var cardID = '0';
                 //输出提示框
                 var div = document.createElement("div");
                 div.id = "UploadChoose";
                 div.innerHTML = '\
            <div style="background-color:#FFFFFF;position:absolute;top:' + at + 'px;left:' + al + 'px;width:' + aw + 'px;height:' + ah + 'px;border:2px solid #000000;text-align:left">\
                <div style="clear:both;background-color:#0099AA;line-height:25px;font-weight:bold;color:#FFFFFF;font-size:12px;padding-left:10px">' + title + '</div>\
                <div style="padding-top:30px;">\
               <div style="clear:both;text-align:center;margin-top:0px;padding-bottom:0px"><b>此查询为组合查询，请输入查询条件，没有输入的项将不做处理</b></div>\
            <div style="clear:both;text-align:center;margin-top:10px;padding-bottom:10px">\
                      员工工号：<input id="jsGongHao" type="text" />&nbsp;&nbsp;员工姓名：<input id="jsXingMing" type="text" />\
                     <br><br>所属单位：<input id="dwname" type="text" />\所属部门：<input id="bmname" type="text" />\
                       <br><br>职位类别：<input id="zhiweileibie" type="text" />\
                       <br><br> <input type="button" value="关闭" onclick="closeAlert(\'UploadChoose\');">\
                        <input type="button" value="查询" onclick="chksearchstr();closeAlert(\'UploadChoose\');">\
                    </div>\
                </div>\
            </div>';
                 document.body.appendChild(div);

             }



             function chksearchstr() {

                 var midSql = "";

                 if (document.getElementById('jsGongHao').value != '') {
                     midSql = midSql + "&GongHao=" + document.getElementById('jsGongHao').value + "";
                 }

                 if (document.getElementById('jsXingMing').value != '') {
                     midSql = midSql + "&XingMing=" + document.getElementById('jsXingMing').value + "";
                 }

                 if (document.getElementById('dwname').value != '') {
                     midSql = midSql + "&dwname=" + document.getElementById('dwname').value + "";
                 }
                 if (document.getElementById('bmname').value != '') {
                     midSql = midSql + "&bmname=" + document.getElementById('bmname').value + "";
                 }
                 if (document.getElementById('zhiweileibie').value != '') {
                     midSql = midSql + "&zhiweileibie=" + document.getElementById('zhiweileibie').value + "";
                 }


                 showwait();
                 window.location = "Staff_list.aspx?key=1<%=urlstr%>" + midSql + "";
             }


             function chkyema() {
                 if (document.getElementById('GoPage').value == '') {
                     alert('页码不能为空');
                     form1.GoPage.focus();
                     return false;
                 }

                 if (document.getElementById('GoPage').value != '') {
                     var objRe = /^(0|[1-9]\d*)$/;
                     if (!objRe.test(document.getElementById('GoPage').value)) {
                         alert('页码只能为数字');
                         form1.GoPage.focus();
                         return false;
                     }
                 }
                 showwait();
             }

             function addfrom() {
                 var num = Math.random();
                 window.open("Staff_list_add.aspx?tmp=" + num + "", "_blank", "height=660, width=880,toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no,top=0,left=40")
             }


             function showfrom(str) {
                 var num = Math.random();
                 window.open("Staff_list_show.aspx?tmp=" + num + "&id=" + str + "", "_blank", "height=660, width=880,toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no,top=0,left=40")
             }


             function updatefrom(str) {
                 var num = Math.random();
                 window.open("Staff_list_update.aspx?tmp=" + num + "&id=" + str + "", "_blank", "height=660, width=880,toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no,top=0,left=40")
             }

             function otherfrom(str) {
                 var num = Math.random();
                 window.open("HtManage_zz.aspx?tmp=" + num + "&id=" + str + "", "_blank", "height=660, width=880,toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no,top=0,left=40")
             }

</script>
  <script src="../public/public.js" type="text/javascript"></script>
</head>
<body  bgcolor="#E7E7E7">
    <form id="form1" runat="server">
  
  <!--#include file="../public/pleasewait.htm"-->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
        &nbsp;<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="35">
          <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="17" style="height: 40px">&nbsp;</td>
                <td valign="top" style="height: 40px"> 
                   <div id="printshow2"> <table align="center" background="../images/bg0003.gif" border="0" cellpadding="0"
                        cellspacing="0" width="100%">
                        <tr>
                            <td style="height: 26px; width: 11%;">
                                <button class="btn4on" type="button" onclick="javascript:window.location='Staff_list.aspx?<%=urlstr%>';showwait();">  <font class="shadow_but">在职员工</font></button><%--
                                <button class="btn4off" type="button" onclick="javascript:window.location='Staff_list_lz.aspx?<%=urlstr%>';showwait();"><font class="shadow_but">离职员工</font></button>--%>
                            </td>
                            
                              <td style="height: 26px; width: 23%;" align="left" valign=top>
                                  </td>                          
                            
                               <td style="height: 26px" align="right" > 
                                  <a href="javascript:void(0)"> <img src="../images/button_add.jpg" id="IMG2" runat="server"  onclick="addfrom()" border=0/></a>
                                   <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/images/button_del.jpg" OnClick="ImageButton3_Click" />
                                  <a href="javascript:void(0)"><img onclick="UploadComplete()" src="../images/button_search.jpg"  border=0 id="IMG1" runat="server"/></a>
                               </td>
                        </tr>
                    </table>
                    </div>
                </td>
                <td width="17" style="height: 40px">&nbsp;</td>
              </tr>
            </table><table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17">
                        &nbsp;</td>
                    <td valign="top">
                    	<table  cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top">
                        <div id="Div1" class="mainDiv">
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False" BackColor="#4D77B1" BorderColor="#4D77B1" BorderStyle="None"
                                BorderWidth="1px" CellPadding="3" CellSpacing="1" GridLines="None" 
                                OnRowDataBound="GridView1_RowDataBound" 
                                OnSorting="GridView1_Sorting" PageSize="12" Style="font-size: 12px" Width="100%" >
                                <PagerSettings Visible="False" />
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemStyle HorizontalAlign="Center" Wrap="True" Width="30px" />
                                        <HeaderStyle CssClass="newtitle" ForeColor="DarkSlateGray" HorizontalAlign="Center" Wrap="False" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckSelect" runat="server" />
                                            <asp:Label ID="LabVisible" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                                Visible="False" Width="0px"></asp:Label>
                                             <asp:Label ID="LabNameVisible" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "XingMing") %>'
                                                Visible="False" Width="0px"></asp:Label>
                                        </ItemTemplate>
                                        <FooterStyle Wrap="True" />
                                    </asp:TemplateField>

                                     <asp:BoundField DataField="GongHao" HeaderText="工号" SortExpression="GongHao">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    
                                    <asp:BoundField DataField="XingMing" HeaderText="姓名" SortExpression="XingMing">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="zhiweileibie" HeaderText="职位类别" SortExpression="zhiweileibie">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="danweiname" HeaderText="所属单位" SortExpression="danweiname">
                                        <HeaderStyle CssClass="newtitle"  ForeColor="DarkSlateGray" />
                                    </asp:BoundField>
                                    <%-- <asp:TemplateField HeaderText="所属单位">
                                        <HeaderStyle BackColor="#94C3CE" ForeColor="DarkSlateGray" Wrap="False" Width="80px"/>
                                        <ItemTemplate>
                                            <%#ReturnValue(Convert.ToString(DataBinder.Eval(Container.DataItem, "YinPinBMId")))%>

                                          
                                        </ItemTemplate>
                                        <ItemStyle Wrap="False" HorizontalAlign="Left" Width="80px"/>
                                    </asp:TemplateField>--%>
                                 <asp:BoundField DataField="YinPinBM" HeaderText="所属部门" SortExpression="YinPinBM">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    
                                  
                                    
                                  <asp:BoundField DataField="YinPinZW" HeaderText="岗位" SortExpression="YinPinZW" Visible="false">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    
                                  <asp:BoundField DataField="Zhiwu" HeaderText="职务" SortExpression="Zhiwu" Visible="false">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="YgGongZ" HeaderText="工种" SortExpression="YgGongZ" Visible="false">
                                        <HeaderStyle  CssClass="newtitle"  ForeColor="DarkSlateGray" Wrap="False" />
                                    </asp:BoundField>                            
                                    <asp:TemplateField HeaderText="操作">
                                        <HeaderStyle BackColor="#94C3CE" ForeColor="DarkSlateGray" Wrap="False" Width="80px"/>
                                        <ItemTemplate>
                                            <asp:Label ID="WFNId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "id")%>' Visible=false></asp:Label>
                                            
                                            <asp:Label ID="Label1" runat="server" ></asp:Label>
                                            <asp:Label ID="Label2" runat="server" ></asp:Label>
                                          
                                        </ItemTemplate>
                                        <ItemStyle Wrap="False" HorizontalAlign=Center Width="80px"/>
                                    </asp:TemplateField>                                   
                                </Columns>
                                
                                <RowStyle BackColor="#FBFCFE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" Wrap="False" />
                                <AlternatingRowStyle BackColor="#E6EDF7" />
                                     <EmptyDataTemplate>
                                    <div align=center><font color=white>无相关数据！</font></div>
                                </EmptyDataTemplate>
                            </asp:GridView>
                            &nbsp;</div>
                            </td>
							</tr>
						</table>
                    </td>
                    <td width="17" >
                        &nbsp;</td>
                </tr>
            </table>
            
              <div id="printshow3">
              <table width="100%" height="34" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                      <td width="17" >
                          &nbsp;</td>
                      <td valign="top" background="../images/next_bg.jpg">
                     
                          <table border="0" cellpadding="0" cellspacing="0">
                              <tr>
                                  <td >
                                
                                  </td>
                                  <td >
                                      <a href="javascript:void(0)" onclick="checkAll()" class="line">全选</a>
                                      &nbsp;&nbsp;<a href="javascript:void(0)" onclick="fanAll()" class="line">反选</a>
                                      &nbsp;&nbsp; <asp:LinkButton ID="btnFirst" runat="server" CssClass="line" CommandArgument="first" OnClick="PagerButtonClick">首页</asp:LinkButton>
                                      &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btnPrev" runat="server" CssClass="line" CommandArgument="prev" OnClick="PagerButtonClick">上一页</asp:LinkButton>
                                      &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btnNext" runat="server" CssClass="line" CommandArgument="next" OnClick="PagerButtonClick">下一页</asp:LinkButton>
                                      &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btnLast" runat="server" CssClass="line" CommandArgument="last" OnClick="PagerButtonClick">尾页</asp:LinkButton>
                                      &nbsp;&nbsp;<font color="#000000"> 页码：<asp:TextBox ID="GoPage" runat="server" Width="25px"></asp:TextBox>
                                      <asp:Button ID="Button1" runat="server" CssClass="button_jdkd" Text="跳转" Width="36px"　Height="20px" OnClick="Button1_Click1" />
                                      &nbsp;&nbsp;每页<font color=red>12</font>条数据
                                      &nbsp;&nbsp;共有<font color=red><%=CountsLabel%></font>条数据&nbsp;&nbsp;当前为第<font color=red><%=CurrentlyPageLabel%></font>页 
                                      &nbsp;&nbsp; 共<font color=red><%=AllPageLabel%></font>页</font>
                         
                                  </td>
                              </tr>
                          </table>
                          </td>
                      <td width="17">
                          &nbsp;</td>
                  </tr>
              </table>
              </div>
              
              
          </td>
        </tr>
      </table></td>
  </tr>
</table>
    </form>
</body>
</html>